﻿using System;
using System.Web.Services;
using Monkey.Warrenty.Biz;
using Monkey.Warrenty.EntityModel;

namespace MonkeyWarranty.Web.Customers
{
    public partial class Groups : System.Web.UI.Page
    {
        #region Properties

        private static CustomerGroupBiz _customerGroupBiz;
        private static CustomerGroupBiz CustomerGroupManager
        {
            get { return _customerGroupBiz ?? (_customerGroupBiz = new CustomerGroupBiz()); }
        }

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod(EnableSession = true)]
        public static object GroupListWs()
        {
            return CustomerGroupManager.GroupListWs();
        }

        //[WebMethod(EnableSession = true)]
        //public static object CreateGroupWs(CustomerGroup record)
        //{
        //    return CustomerGroupManager.CreateGroupWs(record);
        //}

        //[WebMethod(EnableSession = true)]
        //public static object UpdateGroupWs(CustomerGroup record)
        //{
        //    return CustomerGroupManager.UpdateGroupWs(record);
        //}

        [WebMethod(EnableSession = true)]
        public static object DeleteGroupWs(int Id)
        {
            return CustomerGroupManager.DeleteGroupWs(Id);
        }
    }
}